← Back to issue list

snapcraft overwrites log file names on error

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2052798
Type
issue
State
open
Author
~popey
Labels
Created
2024-02-09 11:58:09.312720+00:00
Updated
2024-02-09 11:58:09.312720+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

snapcraft 8.0.2 from the stable channel. The newer versions of snapcraft print output on one line, updating rather than scrolling. When a part (such as an override-build snippet) fails, the log file is displayed, but snapcraft then overwrites that line. So it's not possible to easily copy/paste the log file in order to display it: alan@nuc:~/Source/popey/spectrum-analyser-snap$ snapcraft --use-lxd 'override-build' in part 'spectrum-analyser' failed with code 1.lyser/build/8BitAnalysers/Source/ZXSpectrum/build/CMakeFiles/CMakeOutput.log". Review the scriptlet and make sure it's correct. Failed to execute pack in instance. Recommended resolution: Run the same command again with --debug to shell into the environment if you wish to introspect this failure. Full execution log: '/home/alan/.local/state/snapcraft/log/snapcraft-20240209-115359.161950.log' Note the CMakeOutput.log path is shown as: 'override-build' in part 'spectrum-analyser' failed with code 1.lyser/build/8BitAnalysers/Source/ZXSpectrum/build/CMakeFiles/CMakeOutput.log". It likely should be: 'override-build' in part 'spectrum-analyser' failed with code 1 project/parts/spectrum-analyser/build/8BitAnalysers/Source/ZXSpectrum/build/CMakeFiles/CMakeOutput.log". Steps to reproduce: A simple part, which will fail due to a missing build-package. spectrum-analyser: plugin: nil override-build: | git clone --recursive https://github.com/TheGoodDoktor/8BitAnalysers cd 8BitAnalysers/Source/ZXSpectrum mkdir build cd build /usr/bin/cmake .. make build-packages: - build-essential - cmake - libgl-dev - libx11-dev - libxrandr-dev

Evaluation history

No evaluation history available.